# Makefile for the socket programming example
#

simple_server_objects = server_socket.o socket.o simple_server_main.o 
simple_client_objects = client_socket.o socket.o simple_client_main.o http_client.o



clean: all
	rm -f *.o


all : simple_server simple_client

simple_server: $(simple_server_objects)
	g++ -o simple_server $(simple_server_objects)


simple_client: $(simple_client_objects)
	g++ -o simple_client $(simple_client_objects)


Socket.o: ./socket.cpp
	g++ -c ./socket.cpp
ServerSocket.o: ./server_socket.cpp
	g++ -c ./server_socket.cpp
ClientSocket.o: ./client_socket.cpp
	g++ -c ./client_socket.cpp
http_client.o: ./http_client.cpp
	g++ -c ./http_client.cpp
simple_server_main.o: ./simple_server_main.cpp
	g++ -c ./simple_server_main.cpp
simple_client_main.o: ./simple_client_main.cpp
	g++ -c ./simple_client_main.cpp


